package com.kehutong.payfees.entity.treasure;

import com.kehutong.payfees.enums.IdType;
import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;

/**
 * e签宝机构账户
 *
 */
@Table(value = "t_organ_account", comment="机构账户", multi = true)
public class OrganAccount extends Entity {

    private static final long serialVersionUID = -6892697970772744402L;

    protected OrganAccount(String id) {
        super(id);
    }

    @Column(comment = "创建人个人账号id（调用个人账号创建接口返回的accountId）")
    private String creator;
    @Column(comment = "创建人个人账号名称")
    private String creatorName;

    @Column(comment = "机构账号id")
    private String orgId;

    @Column(comment = "机构名称")
    private String name;

    @Column(comment = "证件类型")
    private IdType idType;

    @Column(comment = "证件号")
    private String idNumber;

    @Column(comment = "企业法定代表人证件号")
    private String orgLegalIdNumber;

    @Column(comment = "企业法定代表人名称")
    private String orgLegalName;

    @Column(comment = "逻辑删除")
    private boolean deleted;

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public IdType getIdType() {
        return idType;
    }

    public void setIdType(IdType idType) {
        this.idType = idType;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public String getOrgLegalIdNumber() {
        return orgLegalIdNumber;
    }

    public void setOrgLegalIdNumber(String orgLegalIdNumber) {
        this.orgLegalIdNumber = orgLegalIdNumber;
    }

    public String getOrgLegalName() {
        return orgLegalName;
    }

    public void setOrgLegalName(String orgLegalName) {
        this.orgLegalName = orgLegalName;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }
}
